// Write your cade below:
module.exports =function main(number1) {
    let readlineSync = require("readline-sync");
    let input = readlineSync.question('Please input a number!\n');
    let arr1 = number1.split('');
    let arr2 = input.split('');
    let count1=0,count2=0,result;
    for(let i of arr1){
        if(arr2.includes(i)){
            count2++;
        }
    }
    if(count2 == 0){
        count1 = 0;
    }
    else {
        for(let i in arr1){
            if(arr1[i]==arr2[i]){
                count1++;
            }
        }
    }
    result = count1 + 'A' + count2 + 'B';
    return result;
};
